<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Arafmi Client Relationship Management</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta content="Arafmi Inc." name="Copyright" />

<link rel="stylesheet" href="/css/all.css" type="text/css" media="screen" />

<script src="/js/common.js" type="text/javascript"></script>

</head>
<body style="margin: 0px" scroll="no">
<div id="append_parent"></div>
<table cellpadding="0" cellspacing="0" width="100%" height="100%">
  <tr>
    <td colspan="2" height="90"><div class="mainhd">
        <div class="logo">
			<a target="_blank" href="http://www.arafmi.org">
				<img width="150" height="60" border="0" src="/images/logo.jpg">
			</a>
		</div>
        <div class="uinfo">
          <p>Branch: <em><* $branch_name *></em>&nbsp;&nbsp;&nbsp;User Name:<em><* $_user->name*>(<* $_user->username*>)</em> [ <a href="/staff/pass" target="main">Change Password</a> ] [ <a href="/login/out" target="_top">Logout</a> ]</p>
        </div>
        <div class="nav1">
          <ul id="topmenu">
            <li class="navon"><em><a href="javascript:;" id="header_index" hidefocus="true" onClick="toggleMenu('index', 'index');">Home</a></em></li>
            <li><em><a href="javascript:;" id="header_client" hidefocus="true" onClick="toggleMenu('client', 'index');">Client</a></em></li>
            <li><em><a href="javascript:;" id="header_contact" hidefocus="true" onClick="toggleMenu('contact', 'index');">Contact</a></em></li>
            <li><em><a href="javascript:;" id="header_report" hidefocus="true" onClick="toggleMenu('report', 'index');">Report</a></em></li>		
			<* if $_user->isadmin=='1' *>
				<li><em><a href="javascript:;" id="header_staff" hidefocus="true" onClick="toggleMenu('staff', 'index');">Setting</a></em></li>
			<*/if*>

          </ul>
          <div class="currentloca">
            <p id="admincpnav"></p>
          </div>
          <div class="navbd"></div>
        </div>
      </div></td>
  </tr>
  <tr>
    <td valign="top" width="160" class="menutd"><div id="leftmenu" class="menu">

        <ul id="menu_client" style="display: none">
          <li><a href="/client/index" hidefocus="true" target="main">Client List</a></li>
          <li><a href="/client/add" hidefocus="true" target="main">New Client</a></li>
        </ul>
        
        <ul id="menu_contact" style="display: none">
          <li><a href="/contact/index" hidefocus="true" target="main">Contact List</a></li>
          <li><a href="/contact/add" hidefocus="true" target="main">New Contact</a></li>
        </ul>
        
        <ul id="menu_report" style="display: none">
          <li><a href="/report/time" hidefocus="true" target="main">Time of Calls</a></li>
        </ul> 	
		
        <ul id="menu_staff" style="display: none">
			<li><a href="/staff/index" hidefocus="true" target="main">User Management</a></li>	
			<li><a href="/field/index" hidefocus="true" target="main">Field Management</a></li>				
        </ul> 
                               
      </div></td>
    <td valign="top" width="100%" class="mask">

	<iframe src="/index/normal" id="mainframe" name="main" width="100%" height="100%" frameborder="0" scrolling="yes" style="overflow: visible;"></iframe></td>
  </tr>
</table>
<div class="copyright">
  <p>Powered by <a href="<* $_set.siteurl*>" target="_blank"><* $_set.sitename*></a></p>
  <p><* $_set.copyright *></p>
</div>
<script type="text/JavaScript">
	var headers = new Array('index', 'staff','report','global','contact','client'); /********/
	function toggleMenu(key, url) {
		if(key == 'index' && url == 'index') {
			if(is_ie) {
				doane(event);
			}
			parent.location.href = '/';
			return false;
		}
		for(var k in headers) {
			if($('menu_' + headers[k])) {
				$('menu_' + headers[k]).style.display = headers[k] == key ? '' : 'none';
			}
		}
		var lis = $('topmenu').getElementsByTagName('li');
		for(var i = 0; i < lis.length; i++) {
			if(lis[i].className == 'navon') lis[i].className = '';
		}
		$('header_' + key).parentNode.parentNode.className = 'navon';
		
		if(url) {

			parent.main.location = '/'+key + '/' + url;
			var hrefs = $('menu_' + key).getElementsByTagName('a');

			for(var j = 0; j < hrefs.length; j++) {
			var aa = hrefs[j].href;
				hrefs[j].className = hrefs[j].href.indexOf(url) >= 0  ? 'tabon' : (hrefs[j].className == 'tabon' ? '' : hrefs[j].className);

			}
		}
		return true;
	}

</script>
</body>
</html>
